package bb.lanxing.net.retrofit


data class GenericResponse<DATA>(val data: DATA, val code: Int = 0, val msg: String? = null) {
    val isSuccess
        get() = CODE_SUCCESS == code

    companion object {
        private const val CODE_SUCCESS = 200
    }
}